<div class="box_view_all">
    <div class="bs1b">
        <p class="float_left p5l"><img src="<?php echo $view->layoutUrl; ?>img/icon_view.jpg" alt="" /></p>
        <p class="title float_left" style="padding-right:15px;">User list</p>
        
        <!--
        <div class="box_txt_view p15l" style="float: right; margin-top: -5px;">
            <form method="post">
                <div class="buttons">
                    <span style="padding:4px;text-decoration: none;">                  
                        <label>Site name:</label>
                        <select class="txt_view" name="filter[SiteID]" style="margin-bottom:0px;">
                            <option value="*">---- All ----</option>
                            <option value="7" >SlopeTracker</option>
                            <option value="12" >Capaciton</option>
                            <option value="14" >Zuellig Pharma</option>
                        </select>

                        <input type="submit" value="Filter" style="padding-bottom: 3px;color: white;margin-left:10px;margin-top:-1px;float:left;width:61px;height:22px;background-image:url(<?php echo $view->layoutUrl; ?>img/bt_blank.jpg); border-width:0px;cursor:pointer;">
                    </span>
                </div>
            </form>
            <br class="clear" />
        </div>
        -->
        
        <div class="clear_left"></div>
    </div>
    <div class="box_txt_view">


        <table width="100%" class="batterttable" cellpadding="0" cellspacing="0">
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Email</th>
                <th>Number of Invites</th>
                <th>Number of Clicks</th>
                <th>Number of Referers</th>
                <th>Action</th>
            </tr>

            <?php foreach($view->userlist as $i => $u) { ?>
            <tr<?php if($i % 2 != 0){?> style='background-color:#F6F6F6;'<?php } ?>>
                <td><?php echo $u['user_id'];?></td>
                <td><?php echo $u['name'];?></td>
                <td><?php echo $u['email'];?></td>
                <td><?php echo $u['num_of_invite']==0?0:$u['num_of_invite'];?></td>
                <td><?php echo $u['num_of_clicks'];?></td>
                <td><?php echo $u['num_of_referers'];?></td>                
                <td>
                    <a href="/admin/battery/list-delete/dataid/10"><img style="border-width:0px;" title="Delete" src="<?php echo $view->layoutUrl; ?>img/icon_delete.png" /></a>
                    <a href="/admin/battery/list-edit/dataid/10"><img style="border-width:0px;" title="Edit" src="<?php echo $view->layoutUrl; ?>img/icon_edit.png" /></a>
                </td>
            </tr>
            <?php } ?>
        </table>
        <br />
        <div class="paginationControl">
            <?php if($view->numOfPages > 1){?>
                <?php for($i = 1;$i<=$view->numOfPages;$i++) { ?>
                <a href="?action=<?php echo $view->action;?>&p=<?php echo $i;?>">
                    <?php if($i != 1) { ?> | <?php } ?>
                    <?php echo $i;?>
                </a>
                <?php } ?>
            <?php } ?>
        </div>


        <br class="clear" />

    </div>    
</div></div>